<?php 
session_start();
if (isset($_POST['id'])){   
include_once("../c/config.php"); 
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqli->error);} 
$query=$mysqli->query("select ling1 from play where jid=1 and openid='".$_SESSION['openid']."'  limit 0,1 ");
if($query->num_rows>0){
    $getInfo=$query->fetch_array();
    if(empty($getInfo['ling1'])){
        echo json_encode(array('s'=>'yes'));
    }else{
        echo json_encode(array('s'=>'no'));
    }
    exit;
}else{
    echo json_encode(array('s'=>'no'));
    exit;
}
    
    
    
}


